// 权限模块API
import request from '@/utils/request'

export const uploadPath = process.env.VUE_APP_BASE_API + 'apiManage/PicUpload'

export const baseUrl = process.env.VUE_APP_BASE_API.replace(':9503', '')

// 分类列表
export function getList(data) {
  return request({
    url: '/apiManage/C2cTypeList',
    method: 'post',
    data
  })
}

export function getPage(data) {
  return request({
    url: '/apiManage/C2cUserGoodsPage',
    method: 'post',
    data
  })
}

export function save(data) {
  return request({
    url: '/apiManage/C2cUserGoodsUpdate',
    method: 'post',
    data
  })
}

export function deletInfo(data) {
  return request({
    url: '/apiManage/C2cUserGoodsDel',
    method: 'post',
    data
  })
}

export function tjInfo(data) {
  return request({
    url: '/apiManage/C2cGoodsTj',
    method: 'post',
    data
  })
}

export function C2cGoodsStatus(data) {
  return request({
    url: '/apiManage/C2cSetGoodsStatus',
    method: 'post',
    data
  })
}

export function C2cGoodsPage(data) {
  return request({
    url: '/apiManage/C2cGoodsPage',
    method: 'post',
    data
  })
}

export function RefreshGoods(data) {
  return request({
    url: '/apiManage/RefreshGoods',
    method: 'post',
    data
  })
}

export function RefreshAllGoods(data) {
  return request({
    url: '/apiManage/RefreshAllGoods',
    method: 'post',
    data
  })
}

